linear algebra cofactor expansion